AI Emotion Classifier for Student Wellbeing

Classify Cantonese/Chinese messages into emotional categories using manual input or file upload.

Specialized Focus: This tool is specifically designed for educational contexts to help teachers and counselors identify students who may need emotional support.
Categories Detected:
  • Academic Stress (學習壓力) - Homework overload, exam anxiety
  • Social Isolation(社交孤立) - Loneliness, peer rejection
  • Helplessness(無力感) - Low self-efficacy, depression signs, suicidal tendencies
  • Experiencing Harm(受到傷害) - Bullying, self-harm signals
  • Positive Sentiment(積極) - Engagement, healthy coping
How to Use:
  1. For Classroom Monitoring:
    • Analyze anonymous student feedback
    • Review discussion forum posts
  2. Manual Input: Type/paste student messages
  3. File Upload: Bulk analyze chat logs (.txt)
  4. Click "Classify" to detect emotional patterns
Interpretation Tips:
  • Look for repeated alerts in the same category
  • High "Helplessness" and "Experiencing Harm" scores may indicate need for counselor referral
  • Combine with other student behavior observations
Important: This model is primarily trained on synthetic data augmented with real social media conversations. Its coverage is limited—always verify results manually and follow school welfare protocols.
Model & Data
Model: Fine-tuned mBERT (Cantonese/Chinese focus)
Training Data:
  • 5k labeled messages
  • Synthetic data (GPT-4 + Deepseek)
  • Social media (anonymized)
  • mBART-50 back-translation (0.8 ratio)
Performance:
Macro F1: 0.89 Accuracy: 89%
Classification Report (500 samples):
Category Precision Recall F1-Score
Academic Stress (學習壓力) 0.94 0.89 0.91
Social Isolation (社交孤立) 0.83 0.86 0.84
Helplessness (無力感) 0.84 0.81 0.82
Experiencing Harm (受到傷害) 0.93 0.93 0.93
Positive Sentiment (積極) 0.92 0.96 0.94

Training Parameters
# Training Parameters:
k-fold = 5
epochs = 5
batch_size = 16
learning_rate = 3e-5
max_seq_length = 128
lr_scheduler = "cosine"
warmup_steps = 500
weight_decay = 0.2
seed = 42

Input

File Upload

Results

Academic Stress (學習壓力) (0)

    Social Isolation(社交孤立)(0)

      Helplessness(無力感) (0)

        Experiencing Harm(受到傷害) (0)

          Positive Sentiment(積極) (0)

            Loading...

            Processing your request...